<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>邮件模版管理-<?php echo $GLOBAL['cfg_sitename']."-".$cfg_sysversion;?></title>
<meta property="xn:admins" content="583870616"/>
<meta property="wb:webmaster" content="ye-shi-li@qq.com">
<link href="templets/css/admin_css.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="templets/js/admin.js"></script>
</head>
<body>
<table width="98%" height="101" border="0" cellpadding="3" cellspacing="1" class="ye">
  <tr>
    <td height="22" colspan="10" bgcolor="#555555"><font color="#FFFFFF">&nbsp;<strong>邮件模版管理</strong></font><a href="admin_email_action.php?act=add" class="spemail fancybox">添加模版</a></td>
  </tr>
  <tr>
    <td width="6%" height="24" align="center" valign="middle" bgcolor="#f8f8f8">选择</td>
    <td width="8%" height="24" align="center" valign="middle" bgcolor="#f8f8f8">ID</td>
    <td width="34%" height="24" align="center" valign="middle" bgcolor="#f8f8f8">标题</td>
    <td width="21%" height="24" align="center" valign="middle" bgcolor="#f8f8f8">作者</td>
    <td width="12%" height="24" align="center" valign="middle" bgcolor="#f8f8f8">创建时间</td>
    <td width="19%" height="24" align="center" valign="middle" bgcolor="#f8f8f8">操作</td>
  </tr>
  <form name="form" method="post" action="admin_email_ok.php?act=delcheck">
  <?php
	foreach ($email_list as $list){
  ?>
  <tr onMouseOver="this.style.background='#D7E4F7'" onMouseOut="this.style.background='#EBF2F9';"  bgcolor="#EBF2F9">
    <td height="24" align="center" valign="middle" bgcolor="#f8f8f8"><input type="checkbox" name="ck[]" id="ck[]" value="<?php echo $list['id'];?>" /></td>
    <td height="24" align="center" valign="middle" bgcolor="#f8f8f8"><?php echo $list['id']; ?></td>
    <td align="center" valign="middle" bgcolor="#f8f8f8"><a href="admin_email_action.php?act=mod&id=<?php echo $list['id']; ?>"><?php echo $list['title']; ?></a></td>
    <td align="center" valign="middle" bgcolor="#f8f8f8"><?php echo get_field('admin','username','id',$list['mid']);?></td>
    <td align="center" valign="middle" bgcolor="#f8f8f8"><?php echo $list['datetime'];?></td>
    <td align="center" valign="middle" bgcolor="#f8f8f8" class="caozuo"><a href="admin_email_action.php?act=mod&id=<?php echo $list['id']; ?>" title="修改"><img src="templets/images/edit.png" alt="修改" border="0" /></a>&nbsp;<a href="admin_email_ok.php?id=<?php echo $list['id']; ?>&act=del" onClick="javascript:return confirm('确实要删除吗?')" title="删除"><img src="templets/images/del.png" alt="删除" border="0" /></a></td>
  </tr>
  <?php
  	}
  ?>
  <tr>
    <td height="24" colspan="10" align="center" valign="middle" bgcolor="#F8FCF6"><input type="button" name="button" class="del" value="选择" onclick="delcheck();" /><input type="submit" name="button" class="del" value="删除" onClick="javascript:return confirm('确实要删除吗?')"/><?php page($sqlstr,$page_size,"admin_email.php?page",$page);?></td>
  </tr>
</table>
</body>
</html>